package com.coocaa.ops.admin.v1.audit.service;


import com.coocaa.ops.admin.v1.audit.model.ExecutionTaskModel;
import com.coocaa.ops.common.core.base.model.ResourceBaseModel;
import com.coocaa.ops.common.core.base.model.SimpleSysUserInfo;

import java.util.Map;

/**
 * @author bijiahao
 * @date : 2018/6/15.
 * @description: 审核前校验-审核-撤销审核-上架操作服务接口
 *
 */
public interface IAuditTaskService {
    /**
     * 上架操作
     *
     * @param resourceBaseModel
     * @param userId
     * @return
     */
    void putShelves(ResourceBaseModel resourceBaseModel, Integer userId);

    /**
     * 执行任务-审核操作
     *
     * @param executionTaskModel
     * @param userInfo
     * @return
     */
    Map<String, Object> auditTask(ExecutionTaskModel executionTaskModel, SimpleSysUserInfo userInfo);

    /**
     * 撤销审核
     *
     * @param resourceBaseModel
     * @param userId
     */
    void revokedAudit(ResourceBaseModel resourceBaseModel, Integer userId);

}
